package com.dragon.modules.yuegou.mapper.wallet;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dragon.modules.yuegou.entity.wallet.InvoiceEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * 发票（商户向企业开的发票） Mapper接口
 *
 * @author pbuilder generated
 * @date 2019-05-08 16:00:29
 * @version 2.0
 */
@Component("waltInvoiceMapper")
public interface InvoiceMapper extends BaseMapper<InvoiceEntity> {

	/**
	 * 查询上月开票商户数量
	 * */
	Integer merchantCount(@Param("busdId")String busdId, @Param("month")String month);

	/**
	 * 查询上月开票企业数量
	 * */
	Integer compantCount(@Param("busdId")String busdId, @Param("month")String month);

	/**
	 * 获取上月开票总额
	 * */
	BigDecimal amountCount(@Param("busdId")String busdId, @Param("month")String month);
	
	
	
}
